import { PartnewEntity } from './classitem';
import  {xsEntity} from './commentity';
import { Column ,Entity, OneToMany} from 'typeorm';

/**
 * 描述
 */
@Entity()
export class ClassifyEntity extends xsEntity {
  @Column({ comment: '部门名称' })
  name: string;

  @OneToMany(type => PartnewEntity, photo => photo.pid) // note: we will create author property in the Photo class below
  items: PartnewEntity;
}
